package com.future.serviceImpl;

import com.future.dto.LoginDto;
import com.future.mapper.LoginDtoMapper;
import com.future.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LoginServiceImpl implements  LoginService {
	
	
	@Autowired
	private LoginDtoMapper  loginDtoMapper;
	
	
	//登录
	@Override
	public List<LoginDto> login(String userName, String passWord) {
		return this.loginDtoMapper.selectUserByUserNameUserPwd(userName, passWord);
	}

	@Override
	public List<LoginDto> updateSelect(int userId) {
		return this.loginDtoMapper.selectUserByUserId(userId);
	}


}
